/**
 * 
 */
package com.neal.service.impl;

import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
import org.springframework.stereotype.Service;
import com.neal.domain.Book;
import com.neal.service.ILibraryService;

/**
 * @author Neal
 * @version 1.0
 * @description
 */
@Service
public class LibraryServiceBean implements ILibraryService {

	private List<Book> holidays = new ArrayList<Book>();

	/* (non-Javadoc)
	 * @see com.neal.service.ILibraryService#getHolidays() */
	@Override
	public List<Book> getHolidays() {
		if (holidays.size() == 0) {
			holidays.add(new Book("1", "2", "3", new GregorianCalendar(2007, 11, 25).getTime()));
			holidays.add(new Book("2", "2", "2", new GregorianCalendar(2008, 1, 1).getTime()));
		}
		return holidays;
	}

	public void setHolidays(List<Book> holidays) {
		this.holidays = holidays;
	}

}
